package com.prd.controller;


import com.prd.dto.OaDepartDTO;
import com.prd.service.OaDepartService;
import com.prd.util.JsonData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 离职管理数据表 前端控制器
 * </p>
 *
 * @author lizhaoyi
 * @since 2024-01-01
 */
@RestController
@RequestMapping("/api/oaDepart")
@Api(tags = "离职管理")
public class OaDepartController {

    @Autowired
    private OaDepartService oaDepartService;

    @ApiOperation("确定并提交审批")
    @PostMapping("submit")
    public JsonData submit(@RequestBody OaDepartDTO oaDepartDTO){

        return oaDepartService.submit(oaDepartDTO);
    }

    @ApiOperation("离职详情")
    @PostMapping("detail")
    public JsonData detail(){

//        return oaDepartService.detail();
        return null;
    }

    @ApiOperation("离职申请列表")
    @PostMapping("list")
    public JsonData list(){

        return null;
    }

    @ApiOperation("审核")
    @PostMapping("review")
    public JsonData review(){

        return null;
    }

    @ApiOperation("批准")
    @PostMapping("approve")
    public JsonData approve(){

        return null;
    }

    @ApiOperation("声明")
    @PostMapping("statement")
    public JsonData statement(){

        return null;
    }

    @ApiOperation("确认办理手续")
    @PostMapping("confirmHandle")
    public JsonData confirmHandle(){

        return null;
    }

    @ApiOperation("确认已交接")
    @PostMapping("confirmHandOver")
    public JsonData confirmHandOver(){

        return null;
    }

    @ApiOperation("开具离职证明")
    @PostMapping("issueDepartCertificate")
    public JsonData issueDepartCertificate(){

        return null;
    }

}

